﻿<%@ Page Language="C#" MasterPageFile="~/Common/Master/FrameMain.master" AutoEventWireup="true" Inherits="Calendar_MonthList" Title="无标题页" Codebehind="MonthList.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        #list .tbl1 tr td div
        {
            text-align: right;
            font-family: Microsoft Sans Serif;
        }
        #list .tbl1 tr td
        {
        	cursor:pointer; height:80px;
        	 vertical-align:top;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="toolbar">
        <ul>
            <li><a id="lnkAdd" runat="server" href="javascript:go()"><span><b style="background-image: url(../common/images/calendar/calendarIcon.gif);">
                &nbsp;</b>
                <asp:Literal ID="Literal1" runat="server" Text="增加"></asp:Literal></span></a></li>
            <li style="width: 90px;"><a id="lnkWeekCal" runat="server" href="javascript:go()"><span>
                <b style="background-image: url(../common/images/calendar/cal_week.gif);">&nbsp;</b>
                <asp:Literal ID="Literal2" runat="server" Text="周日程"></asp:Literal></span></a></li>
            <li style="padding-left: 10px;">
                <asp:DropDownList ID="drpDepts" runat="server" OnSelectedIndexChanged="drpDepts_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:DropDownList ID="drpUsers" runat="server" OnSelectedIndexChanged="drpUsers_SelectedIndexChanged">
                </asp:DropDownList>
                &nbsp;
                <asp:Button ID="btnRefresh" OnClick="btnRefresh_Click" runat="server" Text="Button"
                    CssClass="refresh"></asp:Button>
            </li>
        </ul>
    </div>
    <div id="head" style="height: 30px; padding-top: 10px;">
        <asp:ImageButton ID="btnPre" runat="server" ImageUrl="~/common/images/Calendar/arrow_left.gif"
            OnClick="btnPre_Click" />
        &nbsp;&nbsp;&nbsp;
        <asp:Label ID="lblMonth" runat="server" Text="Label" Font-Bold="True" Font-Size="Small"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:ImageButton ID="btnNext" runat="server" ImageUrl="~/common/images/Calendar/arrow_right.gif"
            OnClick="btnNext_Click" />
    </div>
    <div id="list">
        <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items" OnItemDataBound="lv_ItemDataBound">
            <LayoutTemplate>
                <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tbl1">
                    <tr>
                        <th style="width: 12.5%">
                            星期日
                        </th>
                        <th style="width: 15%">
                            星期一
                        </th>
                        <th style="width: 15%">
                            星期二
                        </th>
                        <th style="width: 15%">
                            星期三
                        </th>
                        <th style="width: 15%">
                            星期四
                        </th>
                        <th style="width: 15%">
                            星期五
                        </th>
                        <th style="width: 12.5%;border-right-width: 0px;">
                            星期六
                        </th>
                    </tr>
                    <tr runat="server" id="items">
                    </tr>
                </table>
            </LayoutTemplate>
            <ItemTemplate>
                <tr>
                    <td title="双击添加日程" id="td0" runat="server">
                        <div>
                            <%#Eval("Sunday") %></div>
                        <asp:ListView ID="lv0" runat="server" ItemPlaceholderID="items">
                            <LayoutTemplate>
                                <ul>
                                    <li id="items" runat="server"></li>
                                </ul>
                            </LayoutTemplate>
                            <ItemTemplate>
                                <li>
                                    <asp:Label ID="lblTime" runat="server" Text="Label"></asp:Label>&nbsp; <a href='javascript:go()'
                                        onclick='<%#EditCal(Eval("ID")) %>' title='<%# Eval("Name") %>'>
                                        <%#Truncate(Eval("Name"))%>
                                    </a></li>
                            </ItemTemplate>
                        </asp:ListView>
                    </td>
                    <td title="双击添加日程" id="td1" runat="server">
                        <div>
                            <%#Eval("Monday")%></div>
                        <asp:ListView ID="lv1" runat="server" ItemPlaceholderID="items">
                            <LayoutTemplate>
                                <ul>
                                    <li id="items" runat="server"></li>
                                </ul>
                            </LayoutTemplate>
                            <ItemTemplate>
                                <li>
                                    <asp:Label ID="lblTime" runat="server" Text="Label"></asp:Label>&nbsp; <a href='javascript:go()'
                                        onclick='<%#EditCal(Eval("ID")) %>' title='<%# Eval("Name") %>'>
                                        <%#Truncate(Eval("Name"))%>
                                    </a></li>
                            </ItemTemplate>
                        </asp:ListView>
                    </td>
                    <td title="双击添加日程" id="td2" runat="server">
                        <div>
                            <%#Eval("Tuesday")%></div>
                        <asp:ListView ID="lv2" runat="server" ItemPlaceholderID="items">
                            <LayoutTemplate>
                                <ul>
                                    <li id="items" runat="server"></li>
                                </ul>
                            </LayoutTemplate>
                            <ItemTemplate>
                                <li>
                                    <asp:Label ID="lblTime" runat="server" Text="Label"></asp:Label>&nbsp; <a href='javascript:go()'
                                        onclick='<%#EditCal(Eval("ID")) %>' title='<%# Eval("Name") %>'>
                                        <%#Truncate(Eval("Name"))%>
                                    </a></li>
                            </ItemTemplate>
                        </asp:ListView>
                    </td>
                    <td title="双击添加日程" id="td3" runat="server">
                        <div>
                            <%#Eval("Wednesday")%></div>
                        <asp:ListView ID="lv3" runat="server" ItemPlaceholderID="items">
                            <LayoutTemplate>
                                <ul>
                                    <li id="items" runat="server"></li>
                                </ul>
                            </LayoutTemplate>
                            <ItemTemplate>
                                <li>
                                    <asp:Label ID="lblTime" runat="server" Text="Label"></asp:Label>&nbsp; <a href='javascript:go()'
                                        onclick='<%#EditCal(Eval("ID")) %>' title='<%# Eval("Name") %>'>
                                        <%#Truncate(Eval("Name"))%>
                                    </a></li>
                            </ItemTemplate>
                        </asp:ListView>
                    </td>
                    <td title="双击添加日程" id="td4" runat="server">
                        <div>
                            <%#Eval("Thursday")%></div>
                        <asp:ListView ID="lv4" runat="server" ItemPlaceholderID="items">
                            <LayoutTemplate>
                                <ul>
                                    <li id="items" runat="server"></li>
                                </ul>
                            </LayoutTemplate>
                            <ItemTemplate>
                                <li>
                                    <asp:Label ID="lblTime" runat="server" Text="Label"></asp:Label>&nbsp; <a href='javascript:go()'
                                        onclick='<%#EditCal(Eval("ID")) %>' title='<%# Eval("Name") %>'>
                                        <%#Truncate(Eval("Name"))%>
                                    </a></li>
                            </ItemTemplate>
                        </asp:ListView>
                    </td>
                    <td title="双击添加日程" id="td5" runat="server">
                        <div>
                            <%#Eval("Friday")%></div>
                        <asp:ListView ID="lv5" runat="server" ItemPlaceholderID="items">
                            <LayoutTemplate>
                                <ul>
                                    <li id="items" runat="server"></li>
                                </ul>
                            </LayoutTemplate>
                            <ItemTemplate>
                                <li>
                                    <asp:Label ID="lblTime" runat="server" Text="Label"></asp:Label>&nbsp; <a href='javascript:go()'
                                        onclick='<%#EditCal(Eval("ID")) %>' title='<%# Eval("Name") %>'>
                                        <%#Truncate(Eval("Name"))%>
                                    </a></li>
                            </ItemTemplate>
                        </asp:ListView>
                    </td>
                    <td title="双击添加日程"  style="border-right-width: 0px;" id="td6" runat="server">
                        <div>
                            <%#Eval("Saturday")%></div>
                        <asp:ListView ID="lv6" runat="server" ItemPlaceholderID="items">
                            <LayoutTemplate>
                                <ul>
                                    <li id="items" runat="server"></li>
                                </ul>
                            </LayoutTemplate>
                            <ItemTemplate>
                                <li>
                                    <asp:Label ID="lblTime" runat="server" Text="Label"></asp:Label>&nbsp; <a href='javascript:go()'
                                        onclick='<%#EditCal(Eval("ID")) %>' title='<%# Eval("Name") %>'>
                                        <%#Truncate(Eval("Name"))%>
                                    </a></li>
                            </ItemTemplate>
                        </asp:ListView>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:ListView>
    </div>
</asp:Content>
